package com.hyd.springIOC;

import com.hyd.springIOC.controller.HydController;
import com.hyd.springIOC.ioc.HydIOC;

public class Main {
    public static void main(String[] args) {

        String basepath = Main.class.getResource("").getPath();
//        获取Main的包名
        String basepackage = Main.class.getPackage().getName();
        HydIOC hydIOC = new HydIOC(basepath,basepackage);
        hydIOC.initBeans();
        HydController hydController = (HydController) hydIOC.getInstance(HydController.class.getName());
        hydController.hydtest();
    }
}
